package cn.josewu.crawler;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @program: covid19
 * @description: 定时任务爬虫
 * @author: Mr. Tigger
 * @create 2020-11-13 22:12
 **/

//@Component
public class SchedulerTest {

    @Scheduled(initialDelay = 1000,fixedDelay = 1000)
    public void scheduler(){
        System.out.println("Scheduled每隔1秒钟执行一次！");
    }
}
